package com.example.memurbac_service.service;

import com.example.memurbac_service.pojo.Role;

import java.util.Date;
import java.util.List;

public interface RoleService {
     List<Role> SelectRole();

    int AddRole(String role_name, String role_desc, int role_type);

    int DelRole(int id);

    //停用角色
    int offrole(int roleid);

    //启用角色
    int onrole(int roleid);

    //根据id查询角色信息
    Role selectidrole(int roleid);



    int UpdRole(int id, String role_name, String role_desc, int role_type);

    List<Role> getSelectRole(String role_name);
}
